Get table information on postgresql using sql shell